/**
 * @author liaosh
 * @date 2022-10-15 21:25
 */
public class OperationDiv extends Operation {
    @Override
    public double getResult() {
        if (getNumber2() == 0) {
            throw new ArithmeticException("除数不能为 0");
        }
        return getNumber1() / getNumber2();
    }
}
